package cn.itcast.wanxinp2p.consumer.agent;

import cn.itcast.common.RestResponse;
import cn.itcast.wanxinp2p.account.model.AccountDTO;
import cn.itcast.wanxinp2p.account.model.AccountRegisterDTO;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import org.dromara.hmily.annotation.Hmily;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "account-service")
public interface FeignApi {
    @ApiOperation("用户注册")
    @ApiImplicitParam(name = "accountRegisterDTO", value = "账户注册信息", required =true,dataType = "AccountRegisterDTO", paramType = "body")
    @PostMapping(value = "/account/l/accounts")
    @Hmily
    public RestResponse<AccountDTO> register(@RequestBody AccountRegisterDTO accountRegisterDTO);
}
